package com.zijie.rbac.model;

import com.baomidou.mybatisplus.annotation.*;
import com.zijie.core.util.AuditEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.lang.reflect.Type;
@TableName("t_rbac_group")
@Getter
@Setter
@ToString
public class UserGroup extends AuditEntity {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField(condition = SqlCondition.LIKE,whereStrategy = FieldStrategy.NOT_EMPTY)
    private String name;
    private String description;
    @TableField(condition = SqlCondition.LIKE,whereStrategy = FieldStrategy.NOT_EMPTY)
    private Boolean enabled;//是否可用
    private Integer roleId;
    @TableField(exist = false)
    private String roleName;
}
